//
//  RCVoiceMessageCell.h
//  RongIMKit
//
//  Created by xugang on 15/2/2.
//  Copyright (c) 2015年 RongCloud. All rights reserved.
//

#import "RCMessageCell.h"

#define kAudioBubbleMinWidth 70
#define kAudioBubbleMaxWidth 180
#define kMessageContentViewHeight 36

/// 开始语音播放的Notification
UIKIT_EXTERN NSString *const kNotificationPlayVoice;

/// 语音消息播放停止的Notification
UIKIT_EXTERN NSString *const kNotificationStopVoicePlayer;

/// 语音消息Cell
@interface RCVoiceMessageCell : RCMessageCell

/// 语音播放的View
@property (nonatomic, strong) RCBaseImageView *playVoiceView;

/// 显示是否已播放的View
@property (nonatomic, strong) RCBaseImageView *voiceUnreadTagView;

/// 显示语音时长的Label
@property (nonatomic, strong) UILabel *voiceDurationLabel;

/// 播放语音
- (void)playVoice;

/// 停止播放语音
- (void)stopPlayingVoice;

@end
